/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycity.dao;

import com.mycity.jsonops.UserOps;

/**
 *
 * @author celikeins
 */
public class CommentTab {
    private Long ownerId;
    private Long postId;
    private String content;
    private Long hasStar;
    private Long Id;
    private String date;
    private String fullName;

    public CommentTab(Long ownerId, Long postId, String content, Long hasStar, Long Id, String date) {
        this.ownerId = ownerId;
        this.postId = postId;
        this.content = content;
        this.hasStar = hasStar;
        this.Id = Id;
        this.date = date;
        UserTab user = UserOps.getUserById(ownerId);
        
        this.fullName= "Sari Cizmeli Mehmet Abi";
        if(user!=null)
            this.fullName= user.getFirstname()+" "+user.getLastname();
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }



    public Long getHasStar() {
        return hasStar;
    }

    public void setHasStar(Long hasStar) {
        this.hasStar = hasStar;
    }

    public Long getId() {
        return Id;
    }

    public void setId(Long Id) {
        this.Id = Id;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

 

    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    
    
}
